# include<stdio.h>
/*
只需要找出第一个从最高位开始找出第一个不同的Bit
谁是1谁大
*/
int isLessOrEqual(int a,int b) {
  int diff = a ^ b;
  if (!diff) return 1; //a = b 
  
  // 001xxxxx -> 00100000
  diff |= diff >> 1;
  diff |= diff >> 2;
  diff |= diff >> 4;
  diff |= diff >> 8;
  diff |= diff >> 16;
  diff ^= diff >> 1;
  
  if (!(a & diff))
  	return 1; //a < b
  else
  	return 0; //a > b

}



void main(){

	//int a=1,b=5;
	int ans = isLessOrEqual(4,5);
	printf("%d\n",ans);

}
